﻿using System;

namespace crawler
{
    class Program
    {
        private static Logger logger = Logger.getLogger();

        static void Main(string[] args)
        {
            Database db = new Database();
            try
            {
                db.openConnection();

                Crawler crawler = new Crawler(db, 7, 5);
                crawler.crawlOneMovie(153513);
                //crawler.doCrawling();
            }
            catch (Exception e)
            {
                logger.log(e.ToString());
            }
            finally
            {
                db.closeConnection();
            }
        }
    }
}
